docs(chat): fix component reference accuracy (injectAgent/provideAgent, inputs/outputs)#594
Merged
Merged
Conversation
…t, inputs/outputs) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Jun 6, 2026
blove
added a commit
that referenced
this pull request
Jun 6, 2026
* docs(spec): chat docs technical review design Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * docs(plan): chat docs technical review implementation plan Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * docs(chat): technical review findings report Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * docs(chat): mark review findings resolved (PRs #594-596) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PR 1 of 3 from the chat docs technical review (findings:
docs/superpowers/specs/2026-06-06-chat-docs-review-findings.md). Fixes the component reference pages.Systemic P0 —
agent()import: the docs imported a nonexistentagentfrom@threadplane/langgraphand calledagent({ assistantId, threadId }). Source confirmsagent()is a legacy in-tree factory, not public — the public pattern isprovideAgent({...})(inproviders) +injectAgent()(no args). Converted every occurrence across the component pages (and the folded-inchat/a2ui/overview.mdx), preserving each snippet's config.Completeness/accuracy:
chat.mdx: documented 6 missing inputs (welcomeDisabled,modelOptions,showModelPicker,selectedModel,modelPickerPlaceholder,genuiToolNames) + 4 missing outputs (renderEvent,regenerate,rate,messageCopy).chat-input.mdx: addedshowStopButton,stoppedoutput, and the content-projection Slots table.chat-tool-calls.mdx:excludeToolNames.chat-select.mdx:valueChangeoutput.chat-trace.mdx: cite exportedTraceState, slots optional.chat-popup/chat-sidebar:openmarked two-way (model()).chat-message-list: corrected the "injects the agent" claim — it takes a requiredagentinput.Test Plan
import { agent }/agent({in the touched files.🤖 Generated with Claude Code